package com.ruoyi.param.service.impl;

import com.ruoyi.param.domain.TparamEq;
import com.ruoyi.param.mapper.TparamEqMapper;
import com.ruoyi.param.service.ITparamEqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TparamEqServiceImpl implements ITparamEqService {

    @Autowired
    private TparamEqMapper tparamEqMapper;

    @Override
    public TparamEq selectEqByRoomId(String roomId) {
        return tparamEqMapper.selectByRoomId(roomId);
    }

    @Override
    public List<TparamEq> selectEqList(TparamEq record) {
        return tparamEqMapper.selectEqList(record);
    }

    @Override
    public void updateByRoomIdSelective(TparamEq record) {
        tparamEqMapper.updateByRoomIdSelective(record);
    }

    @Override
    public void deleteByRoomIds(List<String> roomIds) {
        tparamEqMapper.deleteByRoomIds(roomIds);
    }

    @Override
    public void refresh(List<TparamEq> records) {
        if (!records.isEmpty()) {
            tparamEqMapper.refresh(records);
        }
    }

    @Override
    public void insertSelective(TparamEq record) {
        tparamEqMapper.insertSelective(record);
    }
}
